//
//  YCCoreDataManager+CDProductCategory.h
//  DemoCoreData
//
//  Created by tangkexiong on 16/3/16.
//  Copyright © 2016年 tangkexiong. All rights reserved.
//

#import "YCCoreDataManager.h"

#import "YCProduct.h"
#import "YCProductCategory.h"

@interface YCCoreDataManager (CDProductCategory)

- (void)insertCategory:(YCProductCategory *)category
                 block:(void(^)(NSError *error,
                                YCProductCategory *category))block;
- (void)deleteCategory:(YCProductCategory *)category
                 block:(void(^)(NSError *error))block;
- (void)updateCategory:(YCProductCategory *)category
                 block:(void(^)(NSError *error,
                                YCProductCategory *category))block;
- (void)selectCategoriesBlock:(void(^)(NSError *error,
                                       NSArray<YCProductCategory *> *array))block;

@end
